﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administration/Main.Master" AutoEventWireup="true"
	CodeBehind="List.aspx.cs" Inherits="FSViet.Survey.Administration.Group.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div><asp:HyperLink ID="NewButton" runat="server" NavigateUrl="Details.aspx">Create new group</asp:HyperLink></div>
<div><asp:Label ID="msg" runat="server" /></div>
<div><asp:GridView ID="ListItem" runat="server" AutoGenerateColumns="False" 
		onrowcommand="ListItem_RowCommand" onrowdatabound="ListItem_RowDataBound">
	<Columns>
		<asp:HyperLinkField DataNavigateUrlFields="Id" 
			DataNavigateUrlFormatString="../Question/List.aspx?GroupId={0:N}" 
			HeaderText="Question" Text="Show" />
		<asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="../Answer/List.aspx?QuestionId={0:N}"
			HeaderText="Answer Group" Text="Show" />
		<asp:HyperLinkField DataNavigateUrlFields="Id" 
			DataNavigateUrlFormatString="Details.aspx?Id={0}" DataTextField="Name" 
			HeaderText="Name" />
		<asp:TemplateField Visible="false">
			<ItemTemplate>
				<asp:Button ID="AssignGroupButton" runat="server" Text="Assign to group" />
			</ItemTemplate>
		</asp:TemplateField>
		<asp:TemplateField Visible="false">
			<ItemTemplate>
				<asp:Button ID="AssignAnswerGroupButton" runat="server" Text="Assign as answer group" />
			</ItemTemplate>
		</asp:TemplateField>
	</Columns>
</asp:GridView>
</div>
<div class="pages"><asp:Panel id="PageList" runat="server"/></div>
</asp:Content>
